﻿namespace Script.Net
{
    public class TcpClientState
    {
        /// <summary>
        /// TCP链接状态
        /// </summary>
        public TcpConnectionState ConnectionState;
        /// <summary>
        /// TCP使用状态
        /// </summary>
        public TcpUseState UseState;

        public TcpClientState(TcpConnectionState connectionState, TcpUseState useState)
        {
            ConnectionState = connectionState;
            UseState = useState;
        }
        
        public void SetConnectionState(TcpConnectionState connectionState)
        {
            ConnectionState = connectionState;
        }

        public void SetUseState(TcpUseState useState)
        {
            UseState = useState;
        }
    }
}